package com.sc.nft.entity.vo.mall;

import com.google.common.collect.Lists;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class MallOrderProductDetailsVO {

    @ApiModelProperty("订单商品id")
    private Long orderProductId;

    @ApiModelProperty("活动id")
    private Long activityId;

    @ApiModelProperty("活动规格id")
    private Long activitySpecsId;

    @ApiModelProperty("缩略图")
    private String thumbnail;

    @ApiModelProperty("商品名称")
    private String productName;

    @ApiModelProperty("商品规格名称")
    private String productSpecsName;

    @ApiModelProperty("商品数量")
    private Integer productNum;

    @ApiModelProperty(value = "商品详情")
    private List<String> productDetail;
    /**
     * 已退款数量
     */
    @ApiModelProperty("已退款数量")
    private Integer refundSuccessCount;
    /**
     * 退款数量
     */
    @ApiModelProperty("退款数量")
    private Integer refundNum;

    @ApiModelProperty("售价")
    private String productSalesPrice;

    public void setProductSalesPrice(BigDecimal productSalesPrice) {
        this.productSalesPrice = productSalesPrice.setScale(2, BigDecimal.ROUND_DOWN).toPlainString();
    }

    @ApiModelProperty("兑换列表")
    private List<MallOrderDetailsExchangeVO> exchangeList = Lists.newArrayList();

}
